package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicSkItemDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2013-07-30
 */
public interface LogicSkItemDAO {

    /**
     * 插入数据
     * @param logicSkItemDO
     * @return 插入数据的主键
     */
    public String insertLogicSkItemDO(LogicSkItemDO logicSkItemDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicSkItemDO
     * @return 查出的记录数
     */
    public Integer countLogicSkItemDOByExample(LogicSkItemDO logicSkItemDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicSkItemDO
     * @return 受影响的行数
     */
    public Integer updateLogicSkItemDO(LogicSkItemDO logicSkItemDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicSkItemDO
     * @return 对象列表
     */
    public List<LogicSkItemDO> findListByExample(LogicSkItemDO logicSkItemDO) throws DataAccessException;

    /**
     * 根据主键获取logicSkItemDO
     * @param id
     * @return logicSkItemDO
     */
    public LogicSkItemDO findLogicSkItemDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicSkItemDOByPrimaryKey(String id) throws DataAccessException;

    public List<LogicSkItemDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException;
    
    public List<LogicSkItemDO> finditembysoid(String soid) throws DataAccessException;
}